package com.heima.common;

import lombok.*;


import java.util.Collections;
import java.util.List;

@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class PageResponse<T> {
    private Integer pageIndex = 0;

    private Integer pageSize = 0;

    private Integer totalCount = 0;

    private Integer totalPage = 0;

    // 使用Collections.emptyList()代替Collections.EMPTY_LIST
    private List<T> currentPageRecords = Collections.emptyList();
}